import { createApp } from 'vue';
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus'; // 导入Element Plus
import 'element-plus/dist/index.css'; // 导入样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'; // 导入所有图标

import App from './App.vue';

const app = createApp(App);
const pinia = createPinia();

// 安装Pinia
app.use(pinia);

// 安装Element Plus
app.use(ElementPlus);

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.mount('#app');